import {
  PLAY_MODE,
  FAVORITE_KEY,
  SEARCH_KEY,
  PLAY_KEY,
} from "@/assets/js/constant";
import { load } from "@/assets/js/array-store";
const state = {
  sequenceList: [], //页面展示播放列表
  playList: [], //真实播放列表
  playing: false, //是否正在播放
  playMode: PLAY_MODE.sequence, //播放装态
  currentIndex: 0, //当前歌曲索引
  fullScreen: false, //全屏
  favoriteList: load(FAVORITE_KEY), //已收藏列表
  searchHistory: load(SEARCH_KEY), //搜索历史
  playHistory: load(PLAY_KEY),
};
export default state;
